package com.ruoyi.project.system.room.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.room.mapper.TalkRoomMapper;
import com.ruoyi.project.system.room.domain.TalkRoom;
import com.ruoyi.project.system.room.service.ITalkRoomService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class TalkRoomServiceImpl implements ITalkRoomService
{
    @Autowired
    private TalkRoomMapper talkRoomMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param talkId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TalkRoom selectTalkRoomByTalkId(Long talkId)
    {
        return talkRoomMapper.selectTalkRoomByTalkId(talkId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param talkRoom 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TalkRoom> selectTalkRoomList(TalkRoom talkRoom)
    {
        return talkRoomMapper.selectTalkRoomList(talkRoom);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param talkRoom 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTalkRoom(TalkRoom talkRoom)
    {
        return talkRoomMapper.insertTalkRoom(talkRoom);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param talkRoom 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTalkRoom(TalkRoom talkRoom)
    {
        return talkRoomMapper.updateTalkRoom(talkRoom);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param talkIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTalkRoomByTalkIds(String talkIds)
    {
        return talkRoomMapper.deleteTalkRoomByTalkIds(Convert.toStrArray(talkIds));
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param talkId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTalkRoomByTalkId(Long talkId)
    {
        return talkRoomMapper.deleteTalkRoomByTalkId(talkId);
    }
}